package com.gbb.simple.ui.tabpager;

import android.os.Bundle;
import androidx.viewpager.widget.ViewPager;
import android.widget.TabHost;

import com.gbb.simple.R;
import com.gbb.simple.base.BaseFragmentActivity;

/**
 * @author gaobingbing
 */
public class TabViewPagerActivity extends BaseFragmentActivity {

    private TabHost mTabHost;

    private ViewPager mViewPager;

//    private TabViewPagerAdapter tabViewPagerAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tabs_pager);

        mTabHost = (TabHost) findViewById(android.R.id.tabhost);
        mTabHost.setup();

        mViewPager = (ViewPager) findViewById(R.id.pager);

//        tabViewPagerAdapter = new TabViewPagerAdapter(fragmentManager,mContext,mTabHost,mViewPager);
//        tabViewPagerAdapter.addTab(mTabHost.newTabSpec("Fragment1").setIndicator("Fragment1"),TabFragment1.class,null);
//        tabViewPagerAdapter.addTab(mTabHost.newTabSpec("Fragment2").setIndicator("Fragment2"),TabFragment2.class,null);
//        tabViewPagerAdapter.addTab(mTabHost.newTabSpec("Fragment3").setIndicator("Fragment3"),TabFragment3.class,null);
    }

}
